import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist-uni'
const pinia = createPinia()
pinia.use(piniaPersist)

import tmui from './tmui'
import App from './App.vue'
import '@/static/font/iconfont.css'
export function createApp() {
  const app = createSSRApp(App)
  app.use(pinia)
  app.use(tmui, {} as Tmui.tmuiConfig)
  return {
    app,
  }
}
